package cn.itsource.org.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 部门的业务层
 */
public interface IDepartmentService extends IBaseService<Department,DepartmentQuery> {

    /**
     * 分页查询
     * @return
     */
    PageList<Department> getAllByPage(DepartmentQuery query);

/*    *//**
     * 根据主键删除数据
     * @param id
     *//*
    void delete(Long id);

    *//**
     * 新增和修改的联合方法
     * @param department
     *//*
    void saveOrUpdate(Department department);*/


    /**
     * 处理部门的无限极数据
     * @return
     */
    List<Department> treeDept();

    /**
     * 获取所有的部门数据
     * @return
     */
    List<Department> getParentDept();
}
